Bag Constructor

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Overload List

NameDescription
Public methodBag<(Of <T>)>Bag<(Of <T>)>New()()
Creates a new Bag.
Public methodBag<(Of <T>)>Bag<(Of <T>)>New(IEnumerable<(Of <T>)>)
Creates a new Bag. The bag is initialized with all the items in the given collection.
Public methodBag<(Of <T>)>Bag<(Of <T>)>New(IEqualityComparer<(Of <T>)>)
Creates a new Bag. The Equals and GetHashCode methods of the passed comparison object will be used to compare items in this bag for equality.
Public methodBag<(Of <T>)>Bag<(Of <T>)>New(IEnumerable<(Of <T>)>, IEqualityComparer<(Of <T>)>)
Creates a new Bag. The Equals and GetHashCode methods of the passed comparison object will be used to compare items in this bag. The bag is initialized with all the items in the given collection.

See Also